#pragma once

#include "LBProjectPlanPlug/MainDocument.h"
#include "LBProjectPlanPlug/TaskEditor.h"
#include "ProjectPlanGUI/GanttChartWidget.h"
#include "VCRefCount.h"

namespace LBPROJPLUG
{
	class CMainDocument : public IMainDocument
	{
		IMPLEMENT_REFCOUNTING(CMainDocument)
	public:
		CMainDocument(QWidget* pOwner);
		~CMainDocument();

		virtual CRefPtr<LBPROJLOGIC::ITaskEditor> GetTaskEditor() const override;
		virtual LBPROJGUI::CGanttChartWidget* GetGanttWidget() const override;

		void OpenFile(const QString& path) override;
		void SaveFile(const QString& path) override;

	protected:
	private:
		CRefPtr<LBPROJLOGIC::ITaskEditor> m_pTaskEditor;
		LBPROJGUI::CGanttChartWidget* m_pGantWidget;

	};

}

